<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>数据修复</title>
</h:head>
<ui:param name="bean" value="#{dataRepairAction}" />
<h:body>
		<h:form id="form">
		<p:messages id="messages" showDetail="true" life="10000" autoUpdate="true"/>
		<h5>数据修复：</h5>
		<br/>
		<p:dataTable value="#{bean}">
			<p:column headerText="选择时间" style="text-align:center" >
				<p:calendar value="#{bean.date}" mode="popup" pattern="yyyy-MM-dd HH" />
			</p:column>
			<p:column headerText="选择数据类型" style="text-align:center" >
				<p:selectOneMenu value="#{bean.type}" label="选择要修复的数据类型" >
					<f:selectItems value="#{bean.module.entrySet()}" var="entry" itemLabel="#{entry.value}" itemValue="#{entry.key}" />
			</p:selectOneMenu>
			</p:column>
			<p:column headerText="操作" style="text-align:center" width="12%">
				<p:commandButton action="#{bean.repair()}" value="修复" update="form" ajax="false"/>
			</p:column>
		</p:dataTable>
		</h:form>
</h:body>
</html>